package com.example.demo.controller;

import com.example.demo.config.UserConfig;
import com.example.demo.config.UserConfigToFile;
import com.example.demo.config.UserConfigValue;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Autowired
    private UserConfig userEntity;

    @Autowired
    private UserConfigValue userEntityValue;

    @Autowired
    private UserConfigToFile userConfigToFile;


    @RequestMapping("/getuser")
    public String getUsetInfo() {
        return userEntity.toString();
    }

    @RequestMapping("/getuservalue")
    public String getUsetInfoValur() {
        return userEntityValue.toString();
    }

    @RequestMapping("/getconfiguser")
    public String getconfiguser() {
        return userConfigToFile.toString();
    }
}
